package com.topisv.tms.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.topisv.tms.entity.OrderMergeConfig;

public interface OrderMergeConfigDao extends PagingAndSortingRepository<OrderMergeConfig, Long>, JpaSpecificationExecutor<OrderMergeConfig> {
	@Query("select t from OrderMergeConfig t where  customerCode=?1 and shopCode = ?2 and sku =?3")
	List<OrderMergeConfig> findConfig(String customerCode,String shopCode,String sku);
}
